<remote-navbar></remote-navbar>

<div class="container">
  <div class="row">
    <div class="col-md-12">
      <div class="table-responsive noBorder">
        <table class="table table-striped table-hover table-condensed device">
          <thead>
          <tr>
            <th>状态</th>
            <th>机型</th>
            <th>系统</th>
            <th>分辨率</th>
            <th>CPU型号</th>
            <th>CPU核数</th>
            <th>内存</th>
            <th></th>
          </tr>
          </thead>
          <tbody>
          <tr ng-repeat="device in vm.devices">
            <td>{{ ::device.status }}</td>
            <td>{{ ::device.model }}</td>
            <td>Android {{ ::device.os || '4.0.0'}}</td>
            <td>{{ ::device.width }}x{{ ::device.height }}</td>
            <td>{{ ::device.cpu || '未知'}}</td>
            <td>{{ ::device.cores || 1}}</td>
            <td>{{ ::vm.round(device.ram / (1024 * 1024)) || 1}}GB</td>
            <td>
              <button class="btn btn-block btn-lg btn-primary" ng-disabled="device.status !== 'online'"
                      ng-click="vm.apply({
                      deviceID: device.deviceid,
                      model: device.model,
                      width: device.width,
                      height: device.height,
                      cpu: device.cpu,
                      cores: device.cores,
                      os: device.os,
                      ram: device.ram,
                      })">申请
              </button>
            </td>
          </tr>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>

<remote-footer></remote-footer>
